package com.barbeque.mall.bean.wx.topic;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author why
 * @since 2022/07/21 10:09
 */
@NoArgsConstructor
@Data
public class TopicPageInfo {

    @JsonProperty("total")
    private Integer total;
    @JsonProperty("pages")
    private Integer pages;
    @JsonProperty("limit")
    private Integer limit;
    @JsonProperty("page")
    private Integer page;
    @JsonProperty("list")
    private List<ListDTO> list;

    @NoArgsConstructor
    @Data
    public static class ListDTO {
        @JsonProperty("id")
        private Integer id;
        @JsonProperty("title")
        private String title;
        @JsonProperty("subtitle")
        private String subtitle;
        @JsonProperty("price")
        private Double price;
        @JsonProperty("readCount")
        private String readCount;
        @JsonProperty("picUrl")
        private String picUrl;
    }
}
